package com.siam.package_rider.feign;

import com.siam.package_common.entity.BasicResult;
import com.siam.package_rider.entity.TbRiderBill;
import com.siam.package_rider.model.param.TbRiderBillParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "rider-siam")
public interface RiderBillFeignApi {

    @PostMapping(value = "/api/riderBill/insertSelective")
    BasicResult insertSelective(@RequestBody TbRiderBill record);

    @PostMapping(value = "/api/riderBill/list")
    BasicResult<List<TbRiderBill>> list(@RequestBody TbRiderBillParam param);
}